/* ===== Tab Bar ===== */
.tab_bar {
    background: #D0CFCF;
    height: 60px;
    display: flex;
    align-items: center;
}
.tab_bar .w1440 {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tab_item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 60px;
    font-size: 18px;
    color: #444140;
    cursor: pointer;
    transition: all 0.3s;
}
.tab_item.active {
    background: #164F8F;
    color: #fff;
}
.tab_item:hover:not(.active) {
    color: #164F8F;
}

.mkBox1 {
    position: relative;
}

.mkBox2 {
    position: relative;
}

.box_item {
    cursor: pointer;
}

.swiper {
    overflow: hidden;
    margin-top: 80px;
}


.swiper-slide {
    padding-right: 15px;
}

.swiper-slide img {
    min-height: 290px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    height: 500px;
}

.swiper-slide-active img {
    opacity: 1;
}

.box_item {
    position: relative;

}

#nyBan .textBox {
    top: 66%;
}

#nyBan .p_summary {
    margin-top: 20px;
}

/* 去掉 banner 副标题（"技术固化到装备 装备融入产线""严控品质 精益求精"等）下方的那条白色小横线。
   该横线来自全站内页共用的 style.css：#nyBan .p_summary::after（60×2px 白条，bottom:-20px）。
   本页不需要，故在此覆盖掉；其它内页不受影响。 */
#nyBan .p_summary::after {
    display: none;
}

#nyBan .p_summary1 {
    margin-top: 15px;
}

@media screen and (max-width: 1600px) {

    .swiper-slide img {
        min-height: 290px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        height: 290px;
    }
}


@media screen and (max-width: 1280px) {
    
    .swiper-slide img {
        min-height: 220px;
        width: 100%;
        height: 100%;
        object-fit: cover;
        height: 220px;
    }
}

@media screen and (max-width: 768px) {
    .lkjBox1 {
        height: 160px;
    }

    #nyBan .textBox {
        top: 50%;
    }

    #nyBan .p_summary {
        margin-top: 15px;
    }

    .swiper-slide {
        width: 100%;
    }

    .pinfo {
        display: none;
    }

    .mkBox2 {
        height: 700px;
    }}

/* ===== 工艺能力 Section（仅 智能制造 tab） ===== */
.craft_section {
    position: relative;
    width: 100%;
}
.craft_bg {
    position: relative;
    width: 100%;
    height: 900px;
    background-size: cover;
    background-position: center;
}
.craft_inner {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

/* 子Tab导航 */
.craft_tabs {
    display: flex;
    align-items: center;
    justify-content: center; /* 整体居中显示 */
    gap: 120px; /* 间距（原 80px，已增大） */
}
.craft_tab {
    font-size: 32px;
    color: #777777;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    padding-bottom: 13px;
}
.craft_tab.active {
    font-size: 42px;
    color: #44403F;
}
.craft_tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: #164F8F;
    border-radius: 2px;
}
.craft_tab:hover:not(.active) {
    color: #44403F;
}

/* 标题 */
.craft_title {
    font-size: 42px;
    color: #44403F;
    text-align: center;
    margin-top: 80px;
    font-weight: 500;
}

/* 描述 */
.craft_desc {
    font-size: 18px;
    color: #44403F;
    line-height: 2;
    text-align: center;
    max-width: 1440px;
    margin: 56px auto 0;
    padding: 0 40px;
}

/* 三张内容图 */
.craft_images {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 64px;
}
.craft_img {
    width: 440px;
    height: 340px;
    overflow: hidden;
}
.craft_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式 */
@media screen and (max-width: 1440px) {
    .craft_tabs {
        padding-left: 0;
        justify-content: center;
        gap: 60px;
    }
    .craft_images {
        gap: 40px;
        padding: 0 20px;
    }
    .craft_img {
        width: calc((100% - 80px) / 3);
        height: auto;
        aspect-ratio: 440 / 340;
    }
}
@media screen and (max-width: 768px) {
    .craft_bg {
        height: auto;
        min-height: 600px;
    }
    .craft_tabs {
        flex-wrap: wrap;
        gap: 24px;
        padding: 0 20px;
        justify-content: center;
    }
    .craft_tab {
        font-size: 20px;
    }
    .craft_tab.active {
        font-size: 24px;
    }
    .craft_title {
        font-size: 24px;
        margin-top: 40px;
        padding: 0 20px;
    }
    .craft_desc {
        font-size: 14px;
        margin-top: 20px;
        padding: 0 20px;
    }
    .craft_images {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
        padding: 0 20px;
    }
    .craft_img {
        width: 100%;
        max-width: 440px;
        height: auto;
        aspect-ratio: 440 / 340;
    }
}

/* ===== 工艺流程 Section（精铸内） ===== */
.process_section {
    position: relative;
    width: 100%;
    margin-top: 0;
}
/* 最底层：全幅背景图 */
.process_bg {
    position: relative;
    width: 100%;
    min-height: 780px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 中间层：左侧蓝色半透明遮罩 */
.process_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 650px;
    height: 100%;
    background: url('../img/Intelligent/process_overlay.png') no-repeat left top;
    background-size: auto 100%;
    z-index: 1;
    pointer-events: none;
}
/* 最上层：白色卡片 + 内容 */
.process_card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0;
    background: #fff;
    display: flex;
    /* stretch：右侧区块撑满到与左侧图区等高（以左侧高度为准），
       避免切换「铸造/锻造工艺流程」时右侧标题与文字上下跳动 */
    align-items: stretch;
    gap: 56px;
    padding: 20px 0;
}

/* 左侧大图 */
.process_left {
    flex-shrink: 0;
    width: 820px;
    height: 600px;
    overflow: hidden;
    margin-left: 30px;
}
.process_img_wrap {
    width: 100%;
    height: 100%;
}
.process_img_wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 右侧信息区 */
.process_right {
    flex: 1;
    max-width: 500px;
    padding-right: 56px;
    /* 网格布局：两个 .process_text 叠在同一网格单元里取行高，
       使右侧区块高度恒定（= 较长那段文案的高度），
       切换 Tab 时标题与文字都不会位移 */
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: auto auto;
    align-content: start;
}

/* 子Tab */
.process_tabs {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 110px;
    /* 与区块顶部保持距离（内容顶端对齐后，避免 Tab 贴着卡片上边） */
    margin-top: 40px;
    margin-bottom: 38px;
}
.process_tab {
    font-size: 32px;
    color: #777777;
    cursor: pointer;
    position: relative;
    padding-bottom: 10px;
    transition: all 0.3s;
    white-space: nowrap;
}
.process_tab.active {
    color: #154E8E;
}
.process_tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background: #154E8E;
    border-radius: 2px;
}
.process_tab:hover:not(.active) {
    color: #154E8E;
}

/* 描述文字 */
.process_text {
    grid-row: 2;
    grid-column: 1;
    font-size: 18px;
    color: #443F3F;
    line-height: 2;
    text-align: justify;
}

/* 响应式 */
@media screen and (max-width: 1440px) {
    .process_card {
        max-width: calc(100% - 40px);
        gap: 40px;
    }
    .process_left {
        width: 600px;
        height: 440px;
        margin-left: 20px;
    }
    .process_right {
        padding-right: 20px;
    }
}
@media screen and (max-width: 1024px) {
    .process_section {
        margin-top: 80px;
    }
    .process_bg {
        height: auto;
        min-height: 500px;
        padding: 40px 0;
    }
    .process_overlay {
        width: 300px;
    }
    .process_card {
        flex-direction: column;
        max-width: calc(100% - 40px);
        padding: 20px;
        gap: 30px;
        margin-top: 0;
    }
    .process_left {
        width: 100%;
        height: auto;
        aspect-ratio: 820 / 600;
        margin-left: 0;
    }
    .process_right {
        max-width: 100%;
        padding-right: 0;
    }
}
@media screen and (max-width: 768px) {
    .process_overlay {
        width: 200px;
    }
    .process_tabs {
        gap: 40px;
    }
    .process_tab {
        font-size: 22px;
    }
    .process_tab.active {
        font-size: 24px;
    }
    .process_tab.active::after {
        width: 100%;
    }
    .process_text {
        font-size: 14px;
    }
}

/* ===== 各 tab 轮播溢出裁切：防止 swiper slides 平铺撑宽页面（保留露边效果） ===== */
#tab_检验检测,
#tab_技术研发,
#tab_质量优势,
#tab_管理体系 {
    overflow-x: clip;
}